package day20170411.ch01;


import org.junit.Test;

public class PersonTest {
	
	/**
	 * 测试Person动作
	 * @throws Exception
	 */
	@Test
	public void personTest() throws Exception {
		Person zhangsan  = new Person("10001X", "张三", 25, '男');
		Person xiaohong = new Person("10002X", "小红", 21, '女');
		
		//对象person的动作
		zhangsan.work("编程");
		System.out.println(zhangsan.info());
		
		//对象person2的动作
		xiaohong.learn("英语");
	}
}
